package org.shan.weike;

import org.shan.weike.db.ConnectionDB;

import java.util.List;
import java.util.Map;

/**
 * Created by amanda.shan on 2018/9/14.
 */
public class Test {

    public static void main(String[] args) {

        ConnectionDB connectionDB = new ConnectionDB();

        System.out.println(connectionDB.getConnection());

        List<Object> objects = connectionDB.excuteQuery("select top 1 PASS_FLAG from HT_CELL_INFO where CELL_NAME=?",
                new Object[]{"AAA111111111"});

        System.out.println("结果数量:" + objects.size());
        for (int i = 0; i < objects.size(); i++) {
            Map<String, Object> map = (Map<String, Object>) objects.get(i);
            System.out.println("PASS_FLAG:" + map.get("PASS_FLAG"));
        }
    }
}
